{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/user/index')}">用户管理</a></li>
            <li class="">编辑</li>
            <!--<li class="layui-this">编辑用户</li>-->
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/user/update')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">账号：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_email}" readonly   style="background-color: #b1b1b1" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">邀请码：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_code}" readonly   style="background-color: #b1b1b1" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">上级用户：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.uoneeamil}" readonly   style="background-color: #b1b1b1" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">余额：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_dollar_balance}" name="u_dollar_balance" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付宝：</label>
                        <div class="layui-input-block">
                            <input type="text" name = u_alipay  value="{$detail.u_alipay}"  class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">银行卡类型</label>
                        <div class="layui-input-block">
                            <select name="u_bank_type" >
                                <option value="1" {if condition="$detail.u_bank_type==1"} selected="selected"{/if}>工商银行</option>
                                <option value="2" {if condition="$detail.u_bank_type==2"} selected="selected"{/if}>农业银行</option>
                                <option value="3" {if condition="$detail.u_bank_type==3"} selected="selected"{/if}>中国银行</option>
                                <option value="4" {if condition="$detail.u_bank_type==4"} selected="selected"{/if}>建设银行</option>
                                <option value="5" {if condition="$detail.u_bank_type==5"} selected="selected"{/if}>交通银行</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">卡号：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_bank_card_code}" name="u_bank_card_code" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">银行卡户主：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_name_bank}" name="u_name_bank" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">银行卡预留手机号：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_bank_phone}" name="u_bank_phone" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">账号状态：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.u_status==1"}
                            <input type="text" value="正常" readonly   style="background-color: #b1b1b1" class="layui-input">
                            {else/}
                            <input type="text" value="禁止" readonly   style="background-color: #b1b1b1" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">账号属性：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.u_type==1"}
                            <input type="text" value="注册用户" readonly   style="background-color: #b1b1b1" class="layui-input">
                            {else/}
                            <input type="text" value="系统用户" readonly   style="background-color: #b1b1b1" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">累计收益：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_all_profit}" readonly   style="background-color: #b1b1b1" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="hidden" name="u_id" value="{$detail.u_id}">
                            <button class="layui-btn" lay-submit lay-filter="*">更新</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
{/block}